.class Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;
.super Ljava/lang/Object;
.source "AppAlbumActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

.field final synthetic val$appModel:Lcom/brixd/niceapp/model/AppModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;Lcom/brixd/niceapp/model/AppModel;)V
    .registers 3
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    .prologue
    .line 297
    iput-object p1, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 8
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 300
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v3

    if-lez v3, :cond_3b

    .line 301
    new-instance v2, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getActivity()Landroid/app/Activity;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;-><init>(Landroid/content/Context;)V

    .line 302
    .local v2, "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getArticleType()I

    move-result v3

    const/4 v4, 0x1

    if-ne v3, v4, :cond_28

    .line 303
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoNiceDailyDetail(I)V

    .line 313
    .end local v2    # "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    :cond_27
    :goto_27
    return-void

    .line 304
    .restart local v2    # "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    :cond_28
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getArticleType()I

    move-result v3

    const/4 v4, 0x2

    if-ne v3, v4, :cond_27

    .line 305
    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoCommunityDetail(I)V

    goto :goto_27

    .line 308
    .end local v2    # "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    :cond_3b
    new-instance v1, Lcom/brixd/niceapp/ui/InfoDialog;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v1, v3}, Lcom/brixd/niceapp/ui/InfoDialog;-><init>(Landroid/content/Context;)V

    .line 309
    .local v1, "infoDialog":Lcom/brixd/niceapp/ui/InfoDialog;
    const v3, 0x7f0c00ff

    iget-object v4, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/AppModel;->getTitle()Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;->this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    iget-object v5, v5, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-virtual {v5}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-static {v3, v4, v5}, Lcom/zuiapps/suite/utils/string/StringBundleUtil;->resolveString(ILjava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 310
    .local v0, "detailStr":Ljava/lang/String;
    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/ui/InfoDialog;->setMessage(Ljava/lang/String;)V

    .line 311
    invoke-virtual {v1}, Lcom/brixd/niceapp/ui/InfoDialog;->show()V

    goto :goto_27
.end method
